#include<bits/stdc++.h>
#define ll long long
#define pn putchar('\n')
#define fls() fflush(stdout)
#define mset(a,x) memset(a,x,sizeof a)
#define mcpy(a,b) msmcpy(a,b,sizeof a)
#define all(a) a.begin(),a.end()
#define maxn 100005
using namespace std;
int n;
int a[maxn];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
        scanf("%d",&a[i]);
    sort(a+1,a+1+n);
    int res=n;
    for(int i=1,j=1;i<=n;i++)
    {
        if(a[i]>a[j])
        {
            j++;
            res--;
        }
    }
    printf("%d\n",res);
	return 0;
}